package com.kindergarten.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.kindergarten.utils.DateUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author bruce
 * @since 2022-10-27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Course extends PagePojo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 课程名
     */
    private String name;

    /**
     * 老师ID
     */
    private String teaId;

    /**
     * 老师名
     */
    private String teaName;

    /**
     * 上课时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date start;

    /**
     * 下课时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date end;

    /**
     * 节次
     */
    private Integer step;

    /**
     * 上午下午
     */
    private Integer amPm;

    /**
     * 创建时间
     */
    private String createTime= DateUtils.now();

    /**
     * 班级id
     */
    private Integer classId;

    /**
     * 班级名
     */
    @TableField(exist = false)
    private String cname;


    private Integer del=0;

}
